package com.golfbox.oa.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.golfbox.oa.dao.DeptMapper;
import com.golfbox.oa.entity.Dept;
import com.golfbox.oa.service.DeptService;
@Service
@Transactional
public class DeptServiceImpl implements DeptService {

	@Autowired
	private DeptMapper deptMapper;
	@Override
	public int saveDept(Dept dept) {
		return deptMapper.saveDept(dept);

	}

	@Override
	public void updateDept(Dept dept) {
		// TODO Auto-generated method stub

	}

	@Override
	public void deleteDept(int id) {
		// TODO Auto-generated method stub

	}

	@Override
	public Dept findById(int id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Dept> findAll() {
		return deptMapper.findAll();
	}

	public DeptMapper getDeptMapper() {
		return deptMapper;
	}

	public void setDeptMapper(DeptMapper deptMapper) {
		this.deptMapper = deptMapper;
	}

}
